package com.heima.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heima.article.controller.v1.ArticleHomeController;
import com.heima.model.article.dtos.ArticleHomeDto;
import com.heima.model.article.pojo.ApArticle;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    
    /**
     * @description:加载文章列表
     * @author: yanhongwei 
     * @date: 2025/5/28 
     * @param: dto
     * @param: type 1 为加载更多  2 为加载最新
     * @return:
     **/
    List<ApArticle> loadArticleList(ArticleHomeDto dto, short type);
}
